﻿using _05.建构者模式.Interface;
using _05.建构者模式.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _05.建构者模式.Builders
{
    public class Iphone15Builder : IBuilder
    {
        public IPhone Phone { get; set; } = new ApplePhone();

        public void BuildBattery()
        {
            Phone.Battery = "电池 3349mAh锂电池 ";
        }

        public void BuildCamera()
        {
            Phone.Camera = "摄像头 后置4800W像素，前置1200W摄像头";
        }

        public void BuildCPU()
        {
            Phone.CPU = "芯片 A16仿生芯片,16核神经引擎，5核GPU、6核CPU  ";
        }

        public void BuildMemory()
        {
            Phone.Memory = "存储 2G+128G/256G/512G  ";
        }

        public void BuildScreen()
        {
            Phone.Screen = "屏幕 6.1英寸多点触控显示屏 ";
        }

        public IPhone GetPhone()
        {
            return Phone;
        }
    }
}
